<table>
	<thead>
		<tr>
			<th scope="col">Nombre</th>
			<th scope="col">Apellido</th>
			<th scope="col">Curso</th>
			<th scope="col">Telefono</th>
			<th scope="col">Fecha de Nacimiento</th>
			<th scope="col" style="width: 65px;">Acci&oacute;n</th>
		</tr>
	</thead>
	<tbody>
	<g:each in="${studentInstanceList}" status="i" var="studentInstance">
		<tr class="${(i % 2) == 0 ? 'even' : 'odd'}">
			<td><g:link controller="student" action="show" id="${studentInstance.id}">${studentInstance?.name}</g:link></td>
			<td>${studentInstance?.lastname}</td>
			<td>${studentInstance?.course?.name}</td>
			<td>${studentInstance?.phonenumber}</td>
			
			<td><g:formatDate format="dd/MM/yyyy" date="${studentInstance?.birthdate}"/></td>
			<td>
				<g:link controller="student" action="edit" id="${studentInstance.id}" class="table-icon edit" title="Editar"/>
				<g:link controller="receipt" action="create" id="${studentInstance.id}" class="table-icon archive" title="Cobrar"/>
				<%-- <a href="#" class="table-icon delete" title="Delete"></a> --%>
			</td>
		</tr>
	</g:each>
	</tbody>
</table>
<div class="entry">
	<div class="pagination">
		<util:remotePaginate total="${studentInstanceTotal}" update="studentList" controller="dashboard" action="paginate"/>
	</div>
	<div class="sep"></div>		
</div>